home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8255 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.protocom.com!usenet
  2. From: "Michael J. Karas" <mkaras@pclink.com>
  3. Newsgroups: comp.lang.c,comp.lang.c++,comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer,comp.programming,comp.windows.ms.programmer
  4. Subject: Date Arithmetic
  5. Date: 16 Feb 1996 06:53:13 GMT
  6. Organization: Carousel Design Solutions
  7. Message-ID: <4g19kp$640@tracy.protocom.com>
  8. NNTP-Posting-Host: pm1-19.pclink.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.2 (Windows; U; 16bit)
  13.  
  14. I am working on an algorithm for a laser marking machine that writes
  15. expiration delays on to food product boxes. The algorithm needs to 
  16. be able to add NNN days to todays date in the fastest manner possible
  17. without using any floating point arithmetic. I could use help from anyone
  18. that has C code for doing this. It would be nice if the solution took the
  19. leap year problem in to account including the special case of the year 
  20. 2000. Thanks in advance to anyone who could share their knowledge on this 
  21. subject.
  22. -----
  23. Michael Karas             | EMail: mkaras@pclink.com
  24. Carousel Design Solutions | America OnLine: MJKaras
  25. 6021 Logan Avenue South   | Voice: (612) 861-1284
  26. Minneapolis MN 55419      | Fax:   (612) 861-1386
  27. -----
  28.  
  29.  
  30.